package messages;

/**
 * Want a nice way not to be able to re-send queries with TTL < 0.
 * @author Erik
 *
 */
public class SearchQuery extends Message{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2671244977213176692L;
	/**
	 * The id of the person we are trying to find messages from
	 */
	public String ID;
	/**
	 * The last text id from the person with ID that we have found
	 */
	public String MsgID;
	
	/**
	 * A query object to be sent out to the network
	 * @param ID the id string of messages we are searching for
	 * @param OwnerID the original owner of the query, the person the result should be sent to.
	 * TODO add a way to synchronize time between owner and the peer with ID.
	 */
	public SearchQuery(String ID, String MsgID, String OwnerID){
		super(OwnerID);
		this.MsgID = MsgID;
		this.ID = ID;
	}
	
}
